define("mip-down-hideshow/mip-down-hideshow", ["require", "zepto", "customElement"], function (t) {
    function e(t, e) {
        var n = {
            event: "click", isFn: !0, text: null, fn: function () {
            }
        }, r = i.extend({}, n, e), o = !0, s = i(t).find(".hideshow-btn"), a = s.text();
        s.on(r.event, function () {
            if (1 == o ? i(this).html(r.text).addClass("active") : i(this).html(a).removeClass("active"), r.isFn)r.fn(o);
            o = !o
        })
    }

    var i = t("zepto"), n = t("customElement").create();
    return n.prototype.build = function () {
        var t = this.element, n = i(t).attr("hsId");
        if (0 == n)e(t, {
            fn: function (t) {
                i(".bdcs-search-form").show(),
                    i(".xq-top .title ,#mcate em").remove(),
                    i("#mcate").css("width", "35px"),
                    i(".xq-top").css("padding-right", "51px")
            }
        }); else if (1 == n)e(t, {
            fn: function (t) {
                i(".xq-nav").fadeToggle(200)
            }
        }); else if (2 == n)e(t, {
            text: "收起内容", fn: function (t) {
                if (1 == t)i("#summary").hide(), i("#details").show(); else i("#summary").show(), i("#details").hide()
            }
        })
    }, n
}), define("mip-down-hideshow", ["mip-down-hideshow/mip-down-hideshow"], function (t) {
    return t
}), function () {
    function t(t, e) {
        t.registerMipElement("mip-down-hideshow", e)
    }

    if (window.MIP)require(["mip-down-hideshow"], function (e) {
        t(window.MIP, e)
    }); else require(["mip", "mip-down-hideshow"], t)
}();